<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/mdmdialog.jsp"%>
<%@page import="java.util.Date" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>View Dealer Information</title>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/sidecss.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/widgets/My97DatePicker/skin/WdatePicker.css" />
<script type="text/javascript" src="${ctx}/scripts/WinSollAuto.js"></script>
<script type="text/javascript"
	src="${ctx}/widgets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript"
	src="${ctx}/scripts/highchart/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="${ctx}/scripts/base.js"></script>

<style type="text/css">
	.MenuList a.Im160{ background-image: url(../images/SMenuBut_06.gif); color: #e1e1e1 ; width:150px; }
</style>
</head>

<body onLoad="WindowSollAuto()" onResize="WindowSollAuto()">
	<jsp:include page="/commons/messages.jsp" flush="true"></jsp:include>
	<html:form action="/crmPoiInfo/crmPoiInfoAction.do?method=saveDealer" method="post">
		<html:hidden property="poiId"/>
		<div class="bosom_one">
			<div class="bosom_top">
				<span class="left"></span>
				<h4>View Dealer Information</h4>
				<div class='MenuList'>
					<c:if test="${crmPoiInfo.bussinessRegName ne null and crmPoiInfo.dealerStatus ne null and not empty dealerRegPic}">
						<a class="Im160" href="${ctx}/crmPoiInfo/crmPoiInfoAction.do?method=canncelDealerStatus&poiId=${crmPoiInfo.poiCode}&poiCode=${crmPoiInfo.poiCode}">Cancellation of confirmation of business license</a>
					</c:if>
					<c:if test="${(crmPoiInfo.bussinessRegName ne null and crmPoiInfo.dealerStatus eq null  and not empty dealerRegPic) }">
						<a class="Im160" href="${ctx}/crmPoiInfo/crmPoiInfoAction.do?method=doneDealerStatus&poiId=${crmPoiInfo.poiCode}&poiCode=${crmPoiInfo.poiCode}">Confirm business license information</a>
					</c:if>
					<a href="${ctx}/crmPoiInfo/crmPoiInfoAction.do?method=listForDealer">Back</a>
				</div>
				<span class="right"></span>
			</div>
			<div class="bosom_side">
				<div class="casing">
					<div class="caput">
						<span class="left"></span><span class="right"></span>
					</div>
					<div class="viscera" id="SollAuto">
						<div class="sheet_div">
							<table class="list_add">
								<tr>
									<td class="formTable" width="1%">Distributor Name</td>
									<td align="left">${crmPoiInfo.poiName }
									</td>
									<td class="formTable" width="1%">Opening Time</td>
									<td align="left">
									${crmPoiInfo.businessTime }
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Region City</td>
									<td align="left">
										${crmPoiInfo.cityName }
									</td>
									<td class="formTable" width="1%">Phone</td>
									<td align="left">
										${crmPoiInfo.telephone }
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Distributor Address</td>
									<td align="left">
										${crmPoiInfo.address }
									</td>
								
									<td class="formTable" width="1%">MIN Order Amount</td>
									<td align="left">
										${crmPoiInfo.minOrderAmount }
									</td>
									</tr>
								<tr>
									<td class="formTable" width="1%">Longitude</td>
									<td align="left">
										${crmPoiInfo.longitude }
									</td>
									<td class="formTable" width="1%">Latitude</td>
									<td align="left">
										${crmPoiInfo.latitude }
									</td>
								
									
									</tr>
								<tr>
									<td class="formTable" width="1%">Location Error</td>
									<td align="left">
										${crmPoiInfo.locAccuracy }
									</td>
									<td class="formTable" width="1%">Coordinate Format</td>
									<td align="left">
										${crmPoiInfo.coordinateType }
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Status</td>
									<td align="left">
										<c:if test="${crmPoiInfo.status eq 1 }">Valid</c:if>
										<c:if test="${crmPoiInfo.status eq 0 }">Invalid</c:if>
									</td>
									<td class="formTable" width="1%">Handling Fee Rates</td>
									<td align="left">${crmPoiInfo.rate }</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Support Bluetooth Printer or not：</td>
									<td align="left">
										<c:if test="${crmPoiInfo.orderBluetoothPrint == 1}">
											yes
										</c:if>
										<c:if test="${crmPoiInfo.orderBluetoothPrint == 0}">
											no
										</c:if>
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Creator</td>
									<td align="left">${crmPoiInfo.createdBy }</td>

									<td class="formTable" width="1%">Creation Time</td>
									<td align="left"><fmt:formatDate
											value="${crmPoiInfo.created }" pattern="yyyy-MM-dd hh:MM:ss" /></td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Last Update by</td>
									<td align="left">${crmPoiInfo.updateBy }</td>
									<td class="formTable" width="1%">Last Update Time</td>
									<td align="left"><fmt:formatDate
											value="${crmPoiInfo.updated }" pattern="yyyy-MM-dd hh:MM:ss" /></td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Promotional Tips</td>
									<td align="left"colspan="3">
										${crmPoiInfo.promotionSimpleDesc }
									</td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Distributor Profile</td>
									<td align="left" colspan="3">
										${crmPoiInfo.memo }
									</td>
									
								</tr>
								<tr>
									<td class="formTable" width="1%">Name on Business Registration</td>
									<td align="left">
										${crmPoiInfo.bussinessRegName }
									</td>
									<td class="formTable" width="1%">Date of Signing the Contract</td>
									<td align="left" colspan="3">
										<fmt:formatDate value="${crmWsCustomer.contractDate}" pattern="yyyy-MM-dd"/>
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Distributor Type</td>
									<td align="left">
										${crmPoiInfo.dealerType }
									</td>
									<td class="formTable" width="1%">With a Business License or not</td>
									<td align="left" colspan="3">
										<c:if test="${empty crmWsCustomer.isMatchLicence}">no</c:if>
										<c:if test="${crmWsCustomer.isMatchLicence eq '0'}">no</c:if>
										<c:if test="${crmWsCustomer.isMatchLicence eq '1'}">yes</c:if>
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">Distributor Type</td>
									<td align="left">${crmPoiInfo.dealerSourceType }</td>
									<td class="formTable" width="1%">Whether a distributor in platform</td>
									<td align="left">
										<c:if test="${crmPoiInfo.userType eq 1 }">yes</c:if>
										<c:if test="${crmPoiInfo.userType eq 0 }">no</c:if>
									</td>
								</tr>
								<%-- <tr>
									<td class="formTable" width="1%">是否是镇镇通经销商标记</td>
									<td align="left">
										<c:if test="${crmPoiInfo.isZZTDealerSourceType eq 1 }">是</c:if>
										<c:if test="${crmPoiInfo.isZZTDealerSourceType eq 0 }">否</c:if>
									</td>
								</tr> --%>
								<tr>
									<td class="formTable" width="1%">Business license for industrial and commercial registration</td>
									
									<td align="left" colspan="3">
										<c:if test="${empty dealerRegPic }">Business License Photo does not exist</c:if>
										<c:if test="${not empty dealerRegPic}">
											<img src="${dealerRegPic}" />
										</c:if>	
									</td>
								</tr>
								<tr>
									<td class="formTable" width="1%">是否已确认营业执照信息</td>
									<td align="left" colspan="3">
										<c:if test="${crmPoiInfo.dealerStatus eq null}">unconfirmed</c:if>
										<c:if test="${crmPoiInfo.dealerStatus ne null}">confirmed</c:if>
										
									</td>
								</tr>
							<tr>
								<td class="formTable"><font color="#FF0000">*</font>Business License</td>
								<td align="left" colspan="3">
									<%-- 2018年8月10日16:41:31 李少平 营业执照图片显示 start --%>
									<c:if test="${!empty charterUrl}">
									<html:link styleId="charterUrlLink" href="${charterUrl}" target="_blank" >
										<img id="charterUrl" src="${charterUrl }" width="30px" height="30px;"/>
									</html:link>
									</c:if>
									<%-- <c:if test="${!empty crmDealerInfoReview.charterUrl}">
									<html:link styleId="charterUrlLink" href="${crmDealerInfoReview.charterUrl}" target="_blank" >
										<img id="charterUrl" src="${crmDealerInfoReview.charterUrl }" width="30px" height="30px;"/>
									</html:link>
									</c:if> --%>
									<%-- 2018年8月10日16:41:31 李少平 营业执照图片显示 end --%>
									<%-- <input type="button" value="清空" style="width:60px;" onclick="javascript:clearValue('uploadSmallFile');"/>&nbsp;
									<input type="button" value="文件上传" onclick="javascript:openUploadfileWindow('${grp}','uploadSmallFile');"/> --%>
								</td>
						 	 </tr>
						 	 	<tr>
								<td class="formTable"><font color="#FF0000">*</font>Contract of Hui Order</td>
								<td align="left" colspan="3">
								<c:if test="${!empty hxdUrl}">
									<html:link styleId="hxdUrlLink" href="${hxdUrl}" target="_blank" >
										<img id="hxdUrlImg" src="${hxdUrl }" width="30px" height="30px;"/>
									</html:link>
								</c:if>
									<%-- <input type="button" value="清空" style="width:60px;" onclick="javascript:clearValue('uploadSmallFile');"/>&nbsp;
									<input type="button" value="文件上传" onclick="javascript:openUploadfileWindow('${grp}','uploadSmallFile');"/> --%>
								</td>
						 	 	<tr>
								<td class="formTable"><font color="#FF0000">*</font>Photo of Holding the ID Card</td>
								<td align="left" colspan="3">
									<c:if test="${!empty handheldIdCardUrl}">
									<html:link styleId="handheldIdCardUrlLink" href="${handheldIdCardUrl}" target="_blank" >
										<img id="handheldIdCardUrlImg" src="${handheldIdCardUrl }" width="30px" height="30px;"/>
									</html:link>
									</c:if>
									<%-- <input type="button" value="清空" style="width:60px;" onclick="javascript:clearValue('uploadSmallFile');"/>&nbsp;
									<input type="button" value="文件上传" onclick="javascript:openUploadfileWindow('${grp}','uploadSmallFile');"/> --%>
								</td>
						 	 	<tr>
								<td class="formTable"><font color="#FF0000">*</font>Front Photo of ID Card</td>
								<td align="left" colspan="3">
									<c:if test="${!empty idCardUrl}">
									<html:link styleId="idCardUrlLink" href="${idCardUrl}" target="_blank" >
										<img id="idCardUrlImg" src="${idCardUrl }" width="30px" height="30px;"/>
									</html:link>
									</c:if>
									<%-- <input type="button" value="清空" style="width:60px;" onclick="javascript:clearValue('uploadSmallFile');"/>&nbsp;
									<input type="button" value="文件上传" onclick="javascript:openUploadfileWindow('${grp}','uploadSmallFile');"/> --%>
								</td>
						 	 	<tr>
								<td class="formTable"><font color="#FF0000">*</font>Back Photo of ID card</td>
								<td align="left" colspan="3">
								<c:if test="${!empty idCardBackUrl}">
									<html:link styleId="idCardBackUrlLink" href="${idCardBackUrl}" target="_blank" >
										<img id="idCardBackUrlImg" src="${idCardBackUrl }" width="30px" height="30px;"/>
									</html:link>
									</c:if>
									<%-- <input type="button" value="清空" style="width:60px;" onclick="javascript:clearValue('uploadSmallFile');"/>&nbsp;
									<input type="button" value="文件上传" onclick="javascript:openUploadfileWindow('${grp}','uploadSmallFile');"/> --%>
								</td>
						 	 </tr>
						 	 <tr>
							</table>
						</div>
					</div>
					<div class="trail">
						<span class="fleft"></span><span class="fright"></span>
					</div>
				</div>
			</div>
			<div class="bosom_bottom">
				<span class="left"></span><span class="right"></span>
			</div>
		</div>
	</html:form>
</body>
</html>